<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*, javax.servlet.http.*,java.lang.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Title      : Transition
Version    : 1.0
Released   : 20070703
Description: A two-column, fixed-width template with light color blend.

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<% 
String Titulo = null;
try{
	Titulo = (String) request.getSession().getAttribute("titulo");
	if(Titulo.equalsIgnoreCase("Desconectando")){
		out.println("<meta http-equiv=\"Refresh\" content=\"5;url="+request.getSession().getAttribute("forward_to")+"\">");
	} else if(Titulo.equalsIgnoreCase("Informaci&oacute;n")){
		out.println("<meta http-equiv=\"Refresh\" content=\"8;url="+request.getSession().getAttribute("forward_to")+"\">");
	}
} catch (Exception e){
	out.println("ERROR JSP #1: "+e.toString());
}
%>
<title>Web de Cultura de Aplicaciones Telematicas 3</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
	<div id="logo">
		<h1><a href="#"> <% out.println(Titulo); %> </a> </h1>
		<h2><a href="http://www.upf.edu/">Powered by UPF</a></h2>
	</div>
</div>
<div id="header2">
<% if(Titulo.equalsIgnoreCase("Desconectando")){ %>
  <p>Est&aacute; siendo desconectado en estos momentos, por favor espere unos segundos.</p>
  <p>Si no es redireccionado en unos segundos, vuelva a cargar la p&aacute;gina <a href="<%= request.getHeader("referer") %>">AQU&Iacute;</a>. </p>
  <% 
} else if (Titulo.equalsIgnoreCase("Informaci&oacute;n")){

	try{ %>
		<p> <%
		out.println((String) request.getSession().getAttribute("info1"));
		%> </p> <%
	} catch (Exception e){
		out.println("ERROR JSP #2: "+e.toString());
	}
  
} else { %>
	<ul>
		<form id="form1" method="post" action="/servlet/coreservlets.Registro">
		  <table align="center" border="1" width="500" bgcolor="#CCCCCC">
			  <tr>
			    <td width="250"><label for="inputtext1"><font color="#000000"><b>* Login:</b></font></label></td>
				  <td width="250" align="center">
					  <input name="login" type="text" id="inputtext1" maxlength="255" width="245"/>				  </td>
			  </tr>
			  <tr>
			    <td width="250"><label for="inputtext2"><font color="#000000"><b>* Password:</b></font></label></td>
				  <td width="250" align="center">
					  <input width="245" name="password" type="password" id="inputtext2" maxlength="255"/>					</td>
			  </tr>
			  <tr >
			    <td width="250"><label for="inputtext3"><font color="#000000"><b>* Repita el Password:</b></font></label></td>
				  <td width="250" align="center">
					  <input width="245" name="password2" type="password" id="inputtext3" maxlength="255"/>				  </td>
			  </tr>
			  <tr>
			    <td width="250"><label for="inputtext2"><font color="#000000"><b>* E-mail:</b></font></label></td>
				  <td width="250" align="center">
					  <input width="245" name="email" type="text" id="inputtext2" maxlength="255"/>					</td>
			  </tr>
			  <tr>
			    <td width="250"><label for="inputtext2"><font color="#000000"><b>* Preferencia:</b></font></label></td>
				<td width="250" align="center">
				  	<select id="selCombo" name="preference_1">
						<option value="index">General</option>
						<option value="cine">Cine</option>
						<option value="teatro">Teatro</option>
						<option value="espectaculos">Espectaculos</option>
						<option value="musica">M&uacute;sica</option>
					</select>
				</td>
			  </tr>
			  <tr>
			    <td width="250"><label for="inputtext2"><font color="#000000"><b>Pregunta Secreta:</b></font></label></td>
				  <td width="250" align="center">
					  <input width="245" name="squestion" type="text" id="inputtext2" maxlength="255"/>					</td>
			  </tr>
			  <tr>
			    <td width="250"><label for="inputtext2"><font color="#000000"><b>Respuesta Secreta:</b></font></label></td>
				  <td width="250" align="center">
					  <input width="245" name="sanswer" type="text" id="inputtext2" maxlength="255"/>					</td>
			  </tr>
		  </table>
		  <table align="center" bgcolor="#CCCCCC" border="1" width="500">
		  	<tr>
				  <td width="500" align="center">
			  		  <input id="inputsubmit1" type="submit" name="boton" value="Crear Cuenta"/>
				  </td>
			</tr>
			</table>
  		</form>
		<font color="#000000"><b>Los campos que contienen asterisco (*) son obligatorios.</b></font>
		</ul>
	
		<% } %>
</div>
<hr />
<div id="page"></div>
<hr />
<div id="footer-wrapper">
	<div id="footer">
		<p id="legal">Copyright &copy; 2007 Transition. All Rights Reserved<br />
			Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
  </div>
</div>
<div style="font-size: 0.8em; text-align: center; margin-top: 1.0em; margin-bottom: 1.0em;">
Design downloaded from <a href="http://www.freewebtemplates.com/">Free Templates</a> - your source for free web templates
</div>
</body>
</html>